class ProductCollection < ActiveRecord::Base
  belongs_to :resource, :polymorphic => true 
  belongs_to :warehouse
  belongs_to :product
  scope :paginate, lambda { |start,limit| { :offset => start.to_i,:limit => limit.to_i,:order=>"id DESC" }}
end
